/*
 * @Author: 张小平
 * @Date:   2025-05-01
 * @Email:  qqshuqian@163.com
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import website  from '@/framework-core/config/website';
export const tableOption = {
    "border": true,
    "index": true,
    "indexLabel": "#",
    "stripe": true,
    "menuAlign": "center",
    "align": "center",
    "searchMenuSpan": 6,
    menuWidth: 200,
    grid: window.isMobile,
    gridSpan: 24,
    editBtn:true,
    saveBtn: true,
    addBtn: true,
    rowKey: 'id',
    searchEnter:true,
    rowParentKey: 'parentId',
    "column": [
        {
            label: '租户名称',
            prop: 'name',
            'search': true,
            type: "input",
            "span": 12,
            minWidth: 150,
            rules: [{
                required: true,
                message: '请填写租户名称',
                trigger: 'blur'
            }],
        },

        {
            type: 'select',
            label: '租户类型',
            prop: 'type',
            sortable:"custom",
            "span": 12,
            rules: [{
                required: true,
                message: '请选择租户类型',
                trigger: 'blur'
            }],
            dicCode:'tenantType',
            'search': true,
        },
        {
            label: '姓名',
            prop: 'userName',
            type: "input",
            "span": 12,
            rules: [{
                required: true,
                message: '请填写负责人姓名',
                trigger: 'blur'
            }],
        },
        {
            label: '手机号',
            prop: 'phone',
            type: "input",
            "span": 12,
            rules: [{
                required: true,
                message: '请填写负责人手机号',
                trigger: 'blur'
            }],
        },
        {
            hide: true,
            label: 'logo',
            prop: 'logo',
            type: 'upload',
            listType: 'picture-img',
            limit: 1,
            loadText: '图片上传中，请稍等',
            span: 24,
            propsHttp: {
                url: 'url',
                name: 'name',
                res: 'data.data'
            },
            tip: '上传同步至文件服务器',
            action:  website.baseUrl+"/api/sys/file/upload"
        },
        {
            hide: true,
            label: 'favicon',
            prop: 'favicon',
            type: 'upload',
            listType: 'picture-img',
            limit: 1,
            loadText: '图片上传中，请稍等',
            span: 24,
            propsHttp: {
                url: 'url',
                name: 'name',
                res: 'data.data'
            },
            tip: '上传同步至文件服务器',
            action:  website.baseUrl+"/api/sys/file/upload"
        },
        {
            label: '二级域名',
            prop: 'domain',
            type: "input",
            minWidth: 150,
            "span": 12
        },
        {
            label: '网址',
            prop: 'site',
            type: "input",
            minWidth: 150,
            "span": 12
        },
        {
            label: '简介',
            prop: 'fullName',
            type: "input",
            minWidth: 150,
            "span": 12
        },
        {
            label: '排序',
            prop: 'sort',
            type: "input",
            "span": 12
        }

    ]
}
